#ifndef __UART1_INTERCONNECT_H__
#define __UART1_INTERCONNECT_H__

#include "hi_io.h"
#include "hi_types_base.h"
#include "hi_task.h"
#include "hi_uart.h"
#include "string.h"
#include "hi_early_debug.h"
#include "iot_main.h"
#include "stdio.h"
#include "hi_systick.h"
#include <hi_gpio.h>


#define WRITE_BY_INT
#define UART_DEMO_TASK_STAK_SIZE 2048
#define UART_DEMO_TASK_PRIORITY  25
#define INTER_CONNECT_UARTNUM    HI_UART_IDX_1
#define UART_BUFF_SIZE           32
#define PET_LENGTH               11
#define PETCAT                   0
#define PETDOG                   1
#define OTHER                    35

hi_void uart1_interconnect_open(hi_void);
static hi_void *uart_interconnect_task(hi_void *param);
hi_u8 judge_command(hi_u8 *data, hi_s32 len);
hi_bool compare(hi_u8 *data1, hi_u8 *data2, hi_s32 len);
hi_void send_command();
hi_void key_scan();

#endif